$OpenBSD: patch-checks_Makefile_in,v 1.1 2017/03/14 23:40:35 bluhm Exp $
--- checks/Makefile.in.orig	Mon Nov 14 10:37:59 2016
+++ checks/Makefile.in	Mon Mar 13 01:56:07 2017
@@ -317,7 +317,7 @@ AM_CPPFLAGS = -I$(srcdir)/../src/lib/cryptoki_compat \
 EXTRA_DIST = $(srcdir)/*.h \
 		$(srcdir)/softhsm.conf
 
-checks_LDADD = ../src/lib/libsofthsm.la -lstdc++
+checks_LDADD = ../src/lib/libsofthsm.la -lstdc++ -lbz2 -lgmp
 checks_LDFLAGS = -no-install -static -shared-libgcc
 all: all-am
 
